<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">注册用户汇总报表
        <div class="btns">
        </div>
    </h1>
    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="statistics-form">
                <div class="form-group">


                    <span class="label-text">开始时间：</span>
                    <div class="col6">
                        <input class="form-control J_startDate" name="startTimeStr" value="${queryDto.startTimeStr}" >
                    </div>
                    &nbsp;&nbsp;&nbsp;
                    <span class="label-text">结束时间：&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    <div class="col6">
                        <input class="form-control J_endDate" name="endTimeStr" value="${queryDto.endTimeStr}" >
                    </div>

                    <button type="submit" class="btn btn-success J_getExcel"
                            data-action="${rc.contextPath}/account/exportForTotal">注册用户汇总Excel
                    </button>
                    <button type="submit" class="btn btn-success J_search"
                            data-action="${rc.contextPath}/account/totalCount">查询
                    </button>

                </div>

        </form>
    </div>
</div>
    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>日期</th>
                <th>总数</th>
                <th>有效注册</th>
                <th>渠道经理</th>
                <th>内部员工</th>
                <th>外部用户</th>

            </tr>
            </thead>
            <tbody>
            <#if list??>
            <#list list as account>
            <tr>
                <td>${account.date}</td>
                <td>${account.totalCount}</td>
                <td>${account.effectiveCount}</td>
                <td>${account.managerCount}</td>

                <td>${account.innerCount}</td>

                <td>
                    ${account.externalCount}
                </td>
            </tr>
            </#list>
            </#if>
            </tbody>
        </table>
    </div>

</div>

<script>
    var config = {}
</script>

</#macro>

<script>

</script>